import 'package:flutter/cupertino.dart';

extension DoubleExt on double {
  SizedBox get extWidthBox => SizedBox(width: this);
  SizedBox get extHeightBox => SizedBox(height: this);
  BorderRadius get extBorderRadius => BorderRadius.circular(this);

  Widget extVertLine(
      {Color color = const Color(0xFFF1F1F1),
        double? height,
        BorderRadius borderRadius = BorderRadius.zero}) {
    return Container(
      width: this,
      height: height,
      decoration: BoxDecoration(color: color, borderRadius: borderRadius),
    );
  }

  Widget extHorLine(
      {Color color = const Color(0xFFF1F1F1),
        double? width,
        BorderRadius borderRadius = BorderRadius.zero}) {
    return Container(
      height: this,
      width: width,
      decoration: BoxDecoration(color: color, borderRadius: borderRadius),
    );
  }
}